<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page import="java.util.*"%>
<%@ page import="org.jbpm.*"%>
<%@ page import="com.gzgi.framework.context.*"%>
<%@ page import="com.gzgi.framework.mail.*"%>
<%@ page import="com.gzgi.framework.util.*"%>
<%@ include file="/pages/system/checkAdmin.jsp"%>
<%
	Map dataMap = new HashMap();
	dataMap.put("taskDescription", "邮件系统开发");
	dataMap.put("processStarterName", "系统管理员");
	dataMap.put("serviceUrl", "http://127.0.0.1:8080/jbpm");
	dataMap.put("callback", "http://127.0.0.1:8080/jbpm/task.jsp");

	MailMessage mailMessage = new MailMessage();
	mailMessage.setFrom("joy.huang@gzgi.com");
	mailMessage.setTo("joy.huang@gzgi.com");
	mailMessage.setSubject("邮件测试");
	mailMessage.setDataMap(dataMap);
	mailMessage.setTemplateId("velocity-todo");
	mailMessage.setSupportExpression(false);
	mailMessage.setSaveMessage(true);

	MailSender mailSender = (MailSender) ContextFactory
			.getBean("mailSender");
	mailSender.send(mailMessage);
%>